package com.heima.apis.user;

import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: IUserClient
 * Description:
 * date: 2023/8/29 0029 20:57
 *
 * @author zHan
 */
@FeignClient(value = "leadnews-user")
public interface IUserClient {

    /**
     * 获取用户信息
     *
     * @param id
     * @return
     */
    @GetMapping("/api/v1/user/{id}")
    ResponseResult getUserInfo(@PathVariable Integer id);
}